package com.hqyj.demo.entity;


import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * id	int	主键id
 * amount_paid	float	实付金额
 * amount_payable	float	应付金额
 * purchase_date	datetime	入库日期
 * remarks	varchar	描述，备注
 * state	int	状态
 * purchase_number	varchar	单据号
 * supplier_id	int	供货商id
 * user_id	int	操作人员id
 */

@Data
public class Purchase implements Serializable {

    //主键id
    private Integer id;

    //实付金额
    private Float amountPaid;

    //应付金额
    private Float amountPayable;

    //入库日期
    private LocalDateTime purchaseDate;

    //备注
    private String remarks;

    //单据状态
    private Byte state;

    //单据编号
    private String purchaseNumber;

    //供货商id
    private Integer supplierId;
    //供货商对象
    private Supplier supplier;

    //操作人员id
    private Integer userId;
    //操作人对象
    private Admin admin;

    //单据中商品信息
    private List<PurchaseGoods> purchaseGoodsList;

    public Supplier getSupplier() {
        return supplier;
    }

    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }

    public List<PurchaseGoods> getPurchaseGoodsList() {
        return purchaseGoodsList;
    }

    public void setPurchaseGoodsList(List<PurchaseGoods> purchaseGoodsList) {
        this.purchaseGoodsList = purchaseGoodsList;
    }

    public Admin getAdmin() {
        return admin;
    }

    public void setAdmin(Admin admin) {
        this.admin = admin;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Float getAmountPaid() {
        return amountPaid;
    }

    public void setAmountPaid(Float amountPaid) {
        this.amountPaid = amountPaid;
    }

    public Float getAmountPayable() {
        return amountPayable;
    }

    public void setAmountPayable(Float amountPayable) {
        this.amountPayable = amountPayable;
    }

    public LocalDateTime getPurchaseDate() {
        return purchaseDate;
    }

    public void setPurchaseDate(LocalDateTime purchaseDate) {
        this.purchaseDate = purchaseDate;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Byte getState() {
        return state;
    }

    public void setState(Byte state) {
        this.state = state;
    }

    public String getPurchaseNumber() {
        return purchaseNumber;
    }

    public void setPurchaseNumber(String purchaseNumber) {
        this.purchaseNumber = purchaseNumber;
    }

    public Integer getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
}
